<?php
class App_Module_Admin_Component_Myblog_Tpl_Editblog extends App_Module_Admin_Tpl_Block_Editform
{
	protected $_form = 'entity/myblog';

	public function GetForm($blog)
	{
        $this->blog = $blog;
		return $this->CreateForm($blog);
	}

	protected function GetActionUrl()
	{
		return array('module' => 'admin', 'ctrl' => 'myblog', 'action' => 'saveblog', 'blog' => $this->blog->GetId() );
	}

	protected function GetBackUrl()
	{
		return array('module' => 'admin', 'ctrl' => 'myblog', 'action' => 'list', 'blog' => $this->blog->GetId());
	}

	protected function GetHeaderTitle()
	{
		return Mozg_Lang::_('EDIT_BLOG');
	}
}